package appfight.map;

import java.util.Random;

import braindamagestudio.com.app.fight.MainGameActivity;
import android.util.Log;
import appfight.icon.manager.IconManager;
import appfight.level.GameLevel;
import appfight.level.GameLevelMap;
import appfight.level.GameLevelPeopleFight;
import appfight.map.GameObjectMap.Map_Object;
import appfight.monster.Monster;

public class FightNPC extends NPC{

	private Monster _monster;
	private String _fightName;
	
	public FightNPC(Map_Object objectType,GameLevelMap level,Monster monster,String NPCname,String initfaceSprite,String talkfaceSprite,int positionX,int positionY) {
		super(objectType,level,initfaceSprite,talkfaceSprite,positionX,positionY);
		_monster = monster;
		_fightName = NPCname;
	}
	
	@Override
	public void Action()
	{
		super.Action();
	}
	
	@Override
	public void TalkEnd()
	{
	    GameLevel.EndFightActivity = _level.LevelName;
	    GameLevel.EndFightMusic = MainGameActivity.MUSIC_TOWN;
	    
	    _level._activity.StopAllMusic();


		MainGameActivity.changedSceneCharacterX = _level._mainCharacter.NowX;
		MainGameActivity.changedSceneCharacterY = _level._mainCharacter.NowY;
		

		_level._activity.ChangeLevel(new GameLevelPeopleFight("character2.png",_fightName,_monster));
		_level._activity.PlayMusic(MainGameActivity.MUSIC_FIGHT, true);
	}

}
